function t_animate__getAttrByRes(t,a){var e,n=$(window).width();return n>=1200?e=t.attr("data-animate-"+a):"y"==t.attr("data-animate-mobile")?n>=960?((e=t.attr("data-animate-"+a+"-res-960"))||(e=t.attr("data-animate-"+a)),e):n>=640?((e=t.attr("data-animate-"+a+"-res-640"))||(e=t.attr("data-animate-"+a+"-res-960")),e||(e=t.attr("data-animate-"+a)),e):n>=480?((e=t.attr("data-animate-"+a+"-res-480"))||(e=t.attr("data-animate-"+a+"-res-640")),e||(e=t.attr("data-animate-"+a+"-res-960")),e||(e=t.attr("data-animate-"+a)),e):n>=320?((e=t.attr("data-animate-"+a+"-res-320"))||(e=t.attr("data-animate-"+a+"-res-480")),e||(e=t.attr("data-animate-"+a+"-res-640")),e||(e=t.attr("data-animate-"+a+"-res-960")),e||(e=t.attr("data-animate-"+a)),e):void 0:void t.css("transition","none")}function t_animate__init(){if(1==window.isSearchBot||"yes"==$(".t-records").attr("data-blocks-animationoff")||t_animate__checkIE()||"edit"==$(".t-records").attr("data-tilda-mode"))$(".t-animate").removeClass("t-animate");else{t_animate__wrapTextWithOpacity(),t_animate__addNoHoverClassToBtns(),$("[data-animate-style=fadeinleft]:not(.t396__elem)").length>0&&$(".t-records#allrecords").css("overflow-x","hidden");var t=$(".t-animate[data-animate-style='animatednumber']");$(window).width()>=1200&&t_animate__parseNumberText(t),setTimeout(function(){t_animate__startAnimation()},1500)}}function t_animate__checkMobile(t){return t.filter(function(){return"y"===$(this).attr("data-animate-mobile")||($(this).removeClass("t-animate"),!1)}),t}function t_animate__startAnimation(){var t=$(".r").has(".t-animate[data-animate-group=yes]"),a=$(".r").has(".t-animate[data-animate-chain=yes]"),e=$(".t-animate:not([data-animate-group=yes]):not([data-animate-chain=yes])");function n(){t_animate__getGroupsOffsets(t),t_animate__getChainOffsets(a),t_animate__getElemsOffsets(e)}$(window).width()<1200&&(t=t_animate__checkMobile(t),a=t_animate__checkMobile(a),e=t_animate__checkMobile(e)),(void 0!==t&&0!=t.length||void 0!==e&&0!=e.length||void 0!==a&&0!=a.length)&&(t_animate__setAnimationState(t,a,e),t=t.filter(".r:has(.t-animate_wait)"),e=e.filter(".t-animate_wait"),a=a.filter(".r:has(.t-animate_wait)"),n(),$(window).bind("resize",t_throttle(n,200)),setInterval(n,5e3),$(window).bind("scroll",t_throttle(function(){t_animate__animateOnScroll(t,a,e)},200)))}function t_animate__animateOnScroll(t,a,e){if(0!=t.length||0!=a.length||0!=e.length){var n=$(window).scrollTop(),i=n+$(window).height();if($("body").is(":animated")){for(var s=0;sa||0==n.find(".t-animate_wait").length||(t_animate__animateChainItemsOnScroll(t,e,a),0==t[e].itemsOffsets.length&&(t.splice(e,1),e--),t_animate__checkSectionButtonAnimation__outOfTurn(n))}}function t_animate__animateChainItemsOnScroll(t,a,e){var n=$(t[a]),i=n.find(".t-animate_wait[data-animate-chain=yes]"),s=0,r=0,m=t[a].itemsOffsets[0],o=t_animate__getDelayFromPreviousScrollEvent(n,i,.16),_=t_animate__getSectionHeadDealy(n);$(i[0]).addClass("t-animate__chain_first-in-row");for(var l=0;l0){e.match(/\d+/g);var s=e.replace(/(\d)(?= \d) /g,"$1"),r=s.match(/\d+/g);if(r){if(2==r.length){var m=r[1].length;r=(r=+r.join(".")).toFixed(m)}t.attr("data-animate-number-count",e),t_animate__changeNumberOnZero(t,s,r),t.find("span:not(.t-animate__number):first").each(function(){$(this).attr("style",n)})}}})}function t_animate__changeNumberOnZero(t,a,e){var n;n=-1!=(""+e).search(/\./g)?a.replace(/\d+\.\d+|\d+\,\d+/g,'0'):a.replace(/\d+/g,'0'),t.html(n)}function t_animate__animateNumbers(t){t.each(function(){var t=$(this),a=t.attr("data-animate-number-count"),e=[];if(t.find("span:not(.t-animate__number):first").each(function(){e=$(this).attr("style")}),a){var n=a.match(/\d+\.\d+|\d+\,\d+/g),i=a.match(/\d+/g),s=a.replace(/(\d)(?= \d) /g,"$1").match(/\d+/g),r=0,m=!1;t.removeAttr("data-animate-number-count"),null!=n&&(m=-1!=n[0].indexOf(",")),2==s.length&&(r=s[1].length,s=+s.join("."),!0);var o=t.find(".t-animate__number").text();$({animateCounter:o}).animate({animateCounter:s},{duration:1500,easing:"swing",step:function(a){var e=Math.pow(10,r),n=a?(Math.round(this.animateCounter*e)/e).toFixed(r)+"":Math.floor(this.animateCounter)+"";n=i.length>1?n.replace(/(\d)(?=(\d{3})+([^\d]|$))/g,"$1 "):n,m?t.find(".t-animate__number").text(n.replace(/\./g,",")):t.find(".t-animate__number").text(n)},complete:function(){t.html(a),t.find("span").each(function(){$(this).attr("style",e)})}})}})}function t_animate__setAnimationState(t,a,e){var n=$(window).scrollTop(),i=n+$(window).height();t.each(function(){var t=$(this),a=t.find(".t-animate:not([data-animate-chain=yes])"),e=a.first().offset().top;if(t_animate__removeAnimFromHiddenSlides(t),t_animate__assignGroupDelay(t,t_animate__assignSectionDelay(t)),e<=n-100)return t_animate__saveSectionHeaderStartTime(t),a.removeClass("t-animate t-animate_no-hover"),a.css("transition-delay",""),!0;en-100&&(t_animate__makeSectionButtonWait(t),t_animate__removeNoHoverClassFromBtns(a=a.filter(".t-animate:not(.t-animate__btn-wait-chain)")),a.addClass("t-animate_started")),e>=i&&a.addClass("t-animate_wait")}),a.each(function(){var t=$(this);t_animate__assignChainDelay(t,i,n),t_animate__checkSectionButtonAnimation__outOfTurn(t)}),e.each(function(){var t=$(this),a=t.offset().top;if(a=e&&t.addClass("t-animate_wait")}),$(window).bind("resize",t_throttle(t_animate__removeInlineAnimStyles,200))}function t_animate__assignSectionDelay(t){var a=0,e=t.find(".t-section__title.t-animate"),n=t.find(".t-section__descr.t-animate");t.find(".t-section__bottomwrapper .t-btn.t-animate");return e.length&&(a=.16),n.length&&(n.css("transition-delay",a+"s"),a+=.16),a}function t_animate__assignGroupDelay(t,a){var e=0;if(t.find("[data-animate-order]").length)t_animate__assignOrderedElemsDelay(t,a);else{var n=t.find(".t-img.t-animate"),i=t.find(".t-uptitle.t-animate"),s=t.find(".t-title.t-animate:not(.t-section__title)"),r=t.find(".t-descr.t-animate:not(.t-section__descr)"),m=t.find(".t-btn.t-animate:not(.t-section__bottomwrapper .t-btn)"),o=t.find(".t-timer.t-animate"),_=t.find("form.t-animate");0!=n.length&&(e=.5),0!=s.length&&s.css("transition-delay",e+"s"),0!=s.length&&(e+=.3),0!=r.length&&r.css("transition-delay",e+"s"),0!=r.length&&(e+=.3),0!=i.length&&i.css("transition-delay",e+"s"),0!=i.length&&(e+=.3),0==i.length&&0==s.length&&0==r.length||(e+=.2),0!=o.length&&o.css("transition-delay",e+"s"),0!=o.length&&(e+=.5),0!=m.length&&$(m.get(0)).css("transition-delay",e+"s"),2==m.length&&(e+=.4),2==m.length&&$(m.get(1)).css("transition-delay",e+"s"),0!=_.length&&_.css("transition-delay",e+"s")}}function t_animate__assignOrderedElemsDelay(t,a){var e=0;void 0!==a&&a&&(e=a);var n=t.find(".t-animate[data-animate-order=1]"),i=t.find(".t-animate[data-animate-order=2]"),s=t.find(".t-animate[data-animate-order=3]"),r=t.find(".t-animate[data-animate-order=4]"),m=t.find(".t-animate[data-animate-order=5]");elem6=t.find(".t-animate[data-animate-order=6]"),elem7=t.find(".t-animate[data-animate-order=7]"),elem8=t.find(".t-animate[data-animate-order=8]"),elem9=t.find(".t-animate[data-animate-order=9]"),n.length&&n.css("transition-delay",e+"s"),n.length&&i.length&&(e+=1*t_animate__getAttrByRes(i,"delay"),i.css("transition-delay",e+"s")),(n.length||i.length)&&s.length&&(e+=1*t_animate__getAttrByRes(s,"delay"),s.css("transition-delay",e+"s")),(n.length||i.length||s.length)&&r.length&&(e+=1*t_animate__getAttrByRes(r,"delay"),r.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length)&&m.length&&(e+=1*t_animate__getAttrByRes(m,"delay"),m.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length||m.length)&&elem6.length&&(e+=1*t_animate__getAttrByRes(elem6,"delay"),elem6.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length||m.length||elem6.length)&&elem7.length&&(e+=1*t_animate__getAttrByRes(elem7,"delay"),elem7.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length||m.length||elem6.length||elem7.length)&&elem8.length&&(e+=1*t_animate__getAttrByRes(elem8,"delay"),elem8.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length||m.length||elem6.length||elem7.length||elem8.length)&&elem9.length&&(e+=1*t_animate__getAttrByRes(elem9,"delay"),elem9.css("transition-delay",e+"s"))}function t_animate__assignChainDelay(t,a,e){var n=t.find(".t-animate[data-animate-chain=yes]"),i=0;if(0!=n.length){var s=$(n[0]).offset().top;$(n[0]).addClass("t-animate__chain_first-in-row");var r=t_animate__getCurBlockSectionHeadDelay(t);n.each(function(){var m=$(this),o=m.offset().top;if(o0&&(t[a].curTopOffset=$(t[a].querySelector(".t-animate")).offset().top)}function t_animate__getChainOffsets(t){for(var a=0;a0&&(t[a].itemsOffsets[n]=$(e[n]).offset().top)}}function t_animate__getElemsOffsets(t){for(var a=0;a=0){var e=a.indexOf("opacity");if(a.slice(e).indexOf(";")>=0)var n=a.slice(e,e+a.slice(e).indexOf(";"));else n=a.slice(e);var i='
'+t.html()+"
";t.css("opacity",""),t.html(i)}})}function t_animate__checkIE(){var t=window.navigator.userAgent,a=t.indexOf("MSIE"),e="",n=!1;return a>0&&(8!=(e=parseInt(t.substring(a+5,t.indexOf(".",a))))&&9!=e||(n=!0)),n}$(document).ready(function(){t_animate__init()});